#pragma once

#include "log4cxx\logger.h"
#include "log4cxx\PropertyConfigurator.h"
#include <string>

typedef enum enLogType
{
	WN_LOG_LEVEL_DEBUG,
	WN_LOG_LEVEL_INFO,
	WN_LOG_LEVEL_WARN,
	WN_LOG_LEVEL_ERROR
} EN_LOG_TYPE;

class CLog
{
public:
  static CLog& Instance();

private:
  CLog();
  ~CLog();

public:
  void AddLog(std::string strLog, EN_LOG_TYPE type = WN_LOG_LEVEL_INFO);

private:
  log4cxx::LoggerPtr m_loggerPtr;
};
